home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / imglib2 / imgIContainerObserver.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  105 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM imgIContainerObserver.idl
  3.  */
  4.  
  5. #ifndef __gen_imgIContainerObserver_h__
  6. #define __gen_imgIContainerObserver_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_gfxtypes_h__
  14. #include "gfxtypes.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. #include "nsRect.h"
  22. class imgIContainer; /* forward declaration */
  23.  
  24. class gfxIImageFrame; /* forward declaration */
  25.  
  26.  
  27. /* starting interface:    imgIContainerObserver */
  28. #define IMGICONTAINEROBSERVER_IID_STR "53102f15-0f53-4939-957e-aea353ad2700"
  29.  
  30. #define IMGICONTAINEROBSERVER_IID \
  31.   {0x53102f15, 0x0f53, 0x4939, \
  32.     { 0x95, 0x7e, 0xae, 0xa3, 0x53, 0xad, 0x27, 0x00 }}
  33.  
  34. /**
  35.  * imgIContainerObserver interface
  36.  *
  37.  * @author Stuart Parmenter <pavlov@netscape.com>
  38.  * @version 0.1
  39.  */
  40. class NS_NO_VTABLE imgIContainerObserver : public nsISupports {
  41.  public: 
  42.  
  43.   NS_DEFINE_STATIC_IID_ACCESSOR(IMGICONTAINEROBSERVER_IID)
  44.  
  45.   /* [noscript] void frameChanged (in imgIContainer aContainer, in gfxIImageFrame aFrame, in nsIntRect aDirtyRect); */
  46.   NS_IMETHOD FrameChanged(imgIContainer *aContainer, gfxIImageFrame *aFrame, nsIntRect * aDirtyRect) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_IMGICONTAINEROBSERVER \
  52.   NS_IMETHOD FrameChanged(imgIContainer *aContainer, gfxIImageFrame *aFrame, nsIntRect * aDirtyRect); 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  55. #define NS_FORWARD_IMGICONTAINEROBSERVER(_to) \
  56.   NS_IMETHOD FrameChanged(imgIContainer *aContainer, gfxIImageFrame *aFrame, nsIntRect * aDirtyRect) { return _to FrameChanged(aContainer, aFrame, aDirtyRect); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_IMGICONTAINEROBSERVER(_to) \
  60.   NS_IMETHOD FrameChanged(imgIContainer *aContainer, gfxIImageFrame *aFrame, nsIntRect * aDirtyRect) { return !_to ? NS_ERROR_NULL_POINTER : _to->FrameChanged(aContainer, aFrame, aDirtyRect); } 
  61.  
  62. #if 0
  63. /* Use the code below as a template for the implementation class for this interface. */
  64.  
  65. /* Header file */
  66. class _MYCLASS_ : public imgIContainerObserver
  67. {
  68. public:
  69.   NS_DECL_ISUPPORTS
  70.   NS_DECL_IMGICONTAINEROBSERVER
  71.  
  72.   _MYCLASS_();
  73.  
  74. private:
  75.   ~_MYCLASS_();
  76.  
  77. protected:
  78.   /* additional members */
  79. };
  80.  
  81. /* Implementation file */
  82. NS_IMPL_ISUPPORTS1(_MYCLASS_, imgIContainerObserver)
  83.  
  84. _MYCLASS_::_MYCLASS_()
  85. {
  86.   /* member initializers and constructor code */
  87. }
  88.  
  89. _MYCLASS_::~_MYCLASS_()
  90. {
  91.   /* destructor code */
  92. }
  93.  
  94. /* [noscript] void frameChanged (in imgIContainer aContainer, in gfxIImageFrame aFrame, in nsIntRect aDirtyRect); */
  95. NS_IMETHODIMP _MYCLASS_::FrameChanged(imgIContainer *aContainer, gfxIImageFrame *aFrame, nsIntRect * aDirtyRect)
  96. {
  97.     return NS_ERROR_NOT_IMPLEMENTED;
  98. }
  99.  
  100. /* End of implementation class template. */
  101. #endif
  102.  
  103.  
  104. #endif /* __gen_imgIContainerObserver_h__ */
  105.